package main;

import com.itextpdf.text.BaseColor;


public class ColumnEx {
	String colName;
	String defValue;
	BaseColor fontColor;
	BaseColor fgColor;
	String formatStr;
	SimpDataType dataType;
	float width;
	int HorAlignment;
	int verAlignment;
	public ColumnEx() {
		
	}
	public ColumnEx(String colName) {
		this.colName=colName;
	}
	public ColumnEx(String colName,String defValue) {
		this.colName=colName;
		this.defValue=defValue;
	}
	public ColumnEx(String colName,String defValue,SimpDataType dataType) {
		this.colName=colName;
		this.defValue=defValue;
		this.dataType=dataType;
	}
	public ColumnEx(String colName,String defValue,SimpDataType dataType,String formatStr) {
		this.colName=colName;
		this.defValue=defValue;
		this.formatStr=formatStr;
		this.dataType=dataType;
	}
	public ColumnEx(String colName,String defValue,SimpDataType dataType,String formatStr,BaseColor fontColor,BaseColor fgColor) {
		this.colName=colName;
		this.defValue=defValue;
		this.formatStr=formatStr;
		this.dataType=dataType;
		this.fontColor=fontColor;
		this.fgColor=fgColor;
	}
	public SimpDataType getDataType() {
		if(dataType==null){
			return SimpDataType.strType;
		}
		return dataType;
	}
	public void setDataType(SimpDataType dataType) {
		
		this.dataType = dataType;
	}
	public String getColName() {
		return colName;
	}
	public void setColName(String colName) {
		this.colName = colName;
	}
	public String getDefValue() {
		return defValue;
	}
	public void setDefValue(String defValue) {
		this.defValue = defValue;
	}
	public String getFormatStr() {
		return formatStr;
	}
	public void setFormatStr(String formatStr) {
		this.formatStr = formatStr;
	}
	public BaseColor getFontColor() {
		
		return fontColor;
		
	}
	public void setFontColor(BaseColor fontColor) {
		this.fontColor = fontColor;
	}
	public BaseColor getFgColor() {
		return fgColor;
	}
	public void setFgColor(BaseColor fgColor) {
		this.fgColor = fgColor;
	}
	public float getWidth() {
		return width;
	}
	public void setWidth(float width) {
		this.width = width;
	}
	public int getHorAlignment() {
		return HorAlignment;
	}
	public void setHorAlignment(int horAlignment) {
		HorAlignment = horAlignment;
	}
	public int getVerAlignment() {
		return verAlignment;
	}
	public void setVerAlignment(int verAlignment) {
		this.verAlignment = verAlignment;
	}
	
}
